/**
 ******************************************************************************
 ******************************************************************************
 * @file led.h
 * @brief       LED驱动头文件
 * @author      赵雄
 * @email       2076364156@qq.com
 * @version     1.0
 * @date        2025-11-8
 ******************************************************************************
 ******************************************************************************
 */
#ifndef __LED_H__
#define __LED_H__

#include <stdio.h>
#include "stm32f10x.h"

#define RCC_PWM_LED_CLK             RCC_APB2Periph_GPIOA
#define RCC_PWM_LED_TIM_CLK         RCC_APB1Periph_TIM2
#define PWM_LED_TIM                 TIM2
#define PWM_LED_PIN                 GPIO_Pin_1
#define PWM_LED_PORT                GPIOA
#define PWM_LED_COMPARE             TIM_SetCompare2
#define PWM_LED_ON                  GPIO_ResetBits(PWM_LED_PORT,PWM_LED_PIN)
#define PWM_LED_OFF                 GPIO_SetBits(PWM_LED_PORT,PWM_LED_PIN)


void pwm_led_init(uint16_t psc,uint16_t per);
#endif


